<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="menu.companyInfoManagement" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="fnDoSave(this,'companyName')" />
</content>

<probiz:showBindErrors bindPath="companyInfo.*" />
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="menu.companyInfoManagement"/></span></li>
	</ul>
</div>
<div class="modify">
<form class="mainForm" method="post" id="companyInfo" action="${ctxPath}/system/companyInfo.html" onsubmit="return validateCompanyInfo(this);">
	<input type="hidden" name="companyId" value="${companyInfo.companyId}" />
				<table class="com_modi_table" cellSpacing="0" cellPadding="0" width="100%" border="0">
					<tr>
						<th colspan="2" class="title"><h4><fmt:message key="companyInfo.group.basic"/></h4></th>
					</tr>
					<tr>
						<th class="label_width_1">
							<StoreAdmin:label key="companyInfo.companyName" />
						</th>
						<td>
							<spring:bind path="companyInfo.companyName">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}" style="width:350px"
									class="inputtxt"  />
									<span class="icon_help"><probiz:plugin_tip id="companyNameTip"><fmt:message key="companyInfo.companyName.description" /></probiz:plugin_tip></span>
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.logo" />
						</th>
						<td>
							<img id="uploadImage" src="${mediaPath}${companyInfo.logo}"
								onerror="$j(this).attr('originsrc',this.src);this.onerror='';this.src=__defaultImage"
								originsrc="" height="53" width="189"/>
							 <fmt:message key="companyInfo.log.tip"/>
							<br />
							<input type="hidden" name="logo" id="logo" value="${companyInfo.logo}">
							<probiz:plugin_upload fileInputId="logo" uploadFileTypes="jpg,gif,png" onComplete="fnUploadImagehandler"/>
							<script type="text/javascript">
								function fnUploadImagehandler(mediaUrl){
									$j("#uploadImage").get(0).src=__mediaPath+mediaUrl;
								}
							</script>
						</td>
					</tr>
					<tr>
						<th colspan="2" class="title"><h4><fmt:message key="companyInfo.group.contact"/></h4></th>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.country" />
						</th>
						<td>
							<spring:bind path="companyInfo.countryName">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}" style="width:350px"
									class="inputtxt"  />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.state" />
						</th>
						<td>
							<spring:bind path="companyInfo.stateName">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}" style="width:350px"
									class="inputtxt"  />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.city" />
						</th>
						<td>
							<spring:bind path="companyInfo.cityName">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}" style="width:350px"
									class="inputtxt"  />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.address" />
						</th>
						<td>
							<spring:bind path="companyInfo.address">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}" style="width:350px"
									class="inputtxt" />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.zip" />
						</th>
						<td>
							<spring:bind path="companyInfo.zip">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}"
									class="inputtxt"  style="width:350px"/>
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.phone" />
						</th>
						<td>
							<spring:bind path="companyInfo.phone">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}" style="width:350px"
									class="inputtxt" />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.fax" />
						</th>
						<td>
							<spring:bind path="companyInfo.fax">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}" style="width:350px"
									class="inputtxt"  />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.email" />
						</th>
						<td>
							<spring:bind path="companyInfo.email">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}"
									class="inputtxt" style="width:350px" />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.qq" />
						</th>
						<td>
							<spring:bind path="companyInfo.qq">
								<textarea type="text" name="${status.expression}" id="${status.expression}"  class="textareatxt" rows="3" cols="63"/>${status.value}</textarea>
								<span class="icon_help"><probiz:plugin_tip id="qqTip"><fmt:message key="companyInfo.supportMultiComma" /></probiz:plugin_tip></span>
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.msn" />
						</th>
						<td>
							<spring:bind path="companyInfo.msn">
								<textarea type="text" name="${status.expression}" id="${status.expression}" class="textareatxt" rows="3" cols="63"/>${status.value}</textarea>
									<span class="icon_help"><probiz:plugin_tip id="msnTip"><fmt:message key="companyInfo.supportMultiComma" /></probiz:plugin_tip></span>
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
					<tr>
						<th>
							<StoreAdmin:label key="companyInfo.telephoneHotLine" />
						</th>
						<td>
							<spring:bind path="companyInfo.telephoneHotLine">
								<input type="text" name="${status.expression}" id="${status.expression}" value="${status.value}"
									class="inputtxt" style="width:350px"  />
								<span class="fieldError">${status.errorMessage}</span>
							</spring:bind>
						</td>
					</tr>
				</table>
</form>
</div>

<v:javascript formName="companyInfo" staticJavascript="false" />

<script type="text/javascript">
document.forms["companyInfo"].elements["companyName"].focus();
</script>